<%--
  Created by IntelliJ IDEA.
  User: ln
  Date: 2021/2/25
  Time: 17:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    //获取项目名称
    String path = request.getContextPath();
    //获取: 协议://服务器名称:/端口号+ path +"/"
    //http://localhost:8080/Demo18_StuAndTeacher/  --->main.jsp
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>Title</title>
    <base href="<%=basePath%>">
    <link rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/layui.js";></script>
</head>
<body>
<table class="layui-table" lay-skin="line">
    <colgroup>
        <col width="150">
        <col width="150">
        <col width="200">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th colspan="4">个人详细信息</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>账号:</td>
        <td>${user.userNum}</td>
    </tr>
    <tr>
        <td>姓名:</td>
        <td>${user.userName}</td>
    </tr>
    <tr>
        <td>密码:</td>
        <td>${user.password}</td>
    </tr>
    <tr>
        <td>电话号码:</td>
        <td>${user.phone}</td>
    </tr>
    <tr>
        <td>角色:</td>
        <td>${user.roleId}</td>
    </tr>
    </tbody>
</table>

</body>
</html>
